package cn.kgm.template.dto.dto;

import cn.kgm.template.dto.base.TemplateEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;import lombok.*;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * # 技术改变自己 #
 * 模板数据,选择项表
 *
 * @author kapp-i
 * @date 2024-03-18 14:47:45
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TemplateOptionsSaveDTO", description = "模板数据,选择项表")
public class TemplateOptionsSaveDTO extends TemplateEntity<Long> {

    /**
     * 父选择框id,selects表id
     */
    @ApiModelProperty(value = "父选择框id,selects表id", position = 2)
    @NotNull(message = "父选择框id,selects表id不能为空")
    private Long selectId;

    /**
     * 选择项值
     */
    @ApiModelProperty(value = "选择项值", position = 4)
    @Size(max = 32, message = "选择项值长度不能超过32")
    @NotBlank(message = "选择项值不能为空")
    private String value;

}
